package com.jishuo.nontax.bean.vo;

import com.jishuo.base.util.StringObject;
import com.jishuo.nontax.bean.bank.PayWay;
import com.jishuo.nontax.bean.message.SetPayWayDTO;
import lombok.Data;
import org.simpleframework.xml.Element;

import java.io.Serializable;
import java.util.Date;



/**
 * 缴款方式
 * 
 * @author hlp
 * @email 1459875748@qq.com
 * @date 2023-02-02 10:13:13
 */
@Data
public class PayWayVO implements Serializable {
	private static final long serialVersionUID = 1L;
	
	//唯一标识号
	private Long paywayid;
	//缴款方式编码
	private String paywaycode;
	//缴款方式名称
	private String paywayname;
	//是否可用
	private Integer isenable;
	//操作时间
	private String writetime;


	public PayWayVO(){}

	public PayWayVO(SetPayWayDTO bean){
	    if(bean.getPaywayid()!=null){
	        this.paywayid=Long.valueOf(bean.getPaywayid());
        }
        this.paywaycode = bean.getPaywaycode();
        this.paywayname = bean.getPaywayname();

    }

    public PayWay getPayWay(){
        PayWay bean = new PayWay();
        bean.setPaywayid(StringObject.objectString(this.getPaywayid()));
        bean.setPaywaycode(this.getPaywaycode());
        bean.setPaywayname(this.paywayname);
        return bean;
    }


}
